package com.AIDS.AIDSweeper.server.model.DAO;

import java.util.List;

import javax.jdo.PersistenceManager;

public interface GenericDAO<T,ID> {
	
	T save(T entity, PersistenceManager pm);
	
	List<T> findAll(PersistenceManager pm);
	
	T findById(ID id, PersistenceManager pm);
	
	boolean exist(ID id, PersistenceManager pm);
	
}
